package day14;

public class hw5test {

    public static void main(String[] args) { 

        hw5Duration d = new hw5Duration(1, 1, 1); 
        int totalSeconds = d.getTotalSeconds(); 
        System.out.println("totalSeconds = " + totalSeconds); 
        //输出 totalSeconds = 3661 
        
        hw5Duration d2 = new hw5Duration(3660); 
        int hours = d2.getHours(); 
        System.out.println("hours = " + hours);//输出 hours = 1 
        System.out.println(d2);// 输出 1:1:0 

} 
}
